package com.cmc.cloud.cmclink.doc.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cmc.cloud.cmclink.doc.api.document.rep.manifestrep.manifest.ManifestEdiQueryReqVO;
import com.cmc.cloud.cmclink.doc.api.document.rep.manifestrep.manifest.ManifestPageReqVO;
import com.cmc.cloud.cmclink.doc.entity.ManifestDO;
import com.cmc.cloud.cmclink.doc.vo.manifestvo.manifestcntr.ManifestCntrLclReqVO;
import com.cmc.cloud.cmclink.doc.vo.manifestvo.manifestcntr.ManifestCntrLclRespVO;
import com.cmc.cloud.cmclink.doc.vo.multimodaltransport.multimanifest.MultiManifestReqVO;
import com.cmc.cloud.cmclink.doc.vo.multimodaltransport.multimanifest.MultiManifestRespVO;
import com.cmes.framework.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 舱单主 Mapper
 *
 * @author chenzheng
 */
@Mapper
public interface ManifestMapper extends BaseMapperX<ManifestDO> {

    /**
     * 舱单分页查询
     *
     * @param page  分页
     * @param reqVo 舱单主
     * @return 舱单主
     */
    IPage<ManifestDO> selectPageList(IPage<ManifestDO> page, @Param("reqVo") ManifestPageReqVO reqVo);

    /**
     * 舱单分页查询
     *
     * @param reqVo 舱单主
     * @return 舱单主
     */
    List<ManifestCntrLclRespVO> selectManifestLcl(@Param("reqVo") ManifestCntrLclReqVO reqVo);

    /**
     * edi 信息查询
     *
     * @param reqVo
     * @return
     */
    List<Long> selectEdiList(@Param("reqVo") ManifestEdiQueryReqVO reqVo);


    /**
     * 多联仓单信息查询
     *
     * @param page
     * @param reqVo
     * @return
     */
    IPage<MultiManifestRespVO> searchMultiManifestInfo(IPage<MultiManifestRespVO> page, @Param("reqVo") MultiManifestReqVO reqVo);
}
